package com.sec.typhoondatapush.entity;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 动态定时任务的配置信息实体类
 *
 * @author zhuwq
 * @version V1.0
 **/
@Document(collection = "job_config")
@Data
public class JobConfig implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @Id
    private ObjectId id;

    @Field("c_name")
    private String name;

    @Field("c_group")
    private String group;

    @Field("c_class_path")
    private String classPath;

    @Field("c_method_name")
    private String methodName;

    @Field("c_status")
    private String status;

    @Field("c_cron")
    private String cron;

}
